package com.tanhua.common.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//替换get.set.toString    前提是的安装一个lombok插件
@Data
//有参构造
@AllArgsConstructor
//无参构造
@NoArgsConstructor
public class User extends BasePojo{

    private Long id;
    private String mobile;      //手机号

    @JsonIgnore
    private String password;    //密码,JSON序列化时忽略
}
